package com.imooc.bilibili.api;

import com.imooc.bilibili.domain.core.JsonResponse;
import com.imooc.bilibili.elasticsearch.ElasticSearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * @author gcq
 * @Create 2022-06-10
 */
@RestController
public class SystemApi {

//    @Autowired
//    private ElasticSearchService elasticSearchService;

//    @GetMapping("/contents")
//    public JsonResponse<List<Map<String, Object>>> getContents(@RequestParam String keyword,
//                                                               @RequestParam Integer pageNum,
//                                                               @RequestParam Integer pageSize) throws IOException {
////        List<Map<String, Object>> contents = elasticSearchService.getContents(keyword, pageNum, pageSize);
////        return new JsonResponse<>(contents);
//    }
}